<!--
 * @Author: WangGuojian 1085844536@qq.com
 * @Date: 2024-07-02 22:36:15
 * @LastEditTime: 2024-07-02 22:37:22
 * @LastEditors: WangGuojian 1085844536@qq.com
 * @FilePath: \html\code\2_CSS\16_CSS_盒子模型\10_CSS_盒子的外边距_margin.html
 * @Description:
-->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>盒子的外边距_margin</title>
    <style>
        div {
            width: 400px;
            height: 400px;
            /* margin-left: 50px;
            margin-right: 50px;
            margin-top: 30px;
            margin-bottom: 40px; */
            /* margin: 50px; */
            /* margin: 10px 20px; */
            /* margin: 10px 20px 30px; */
            margin: 10px 20px 30px 40px;
            background-color: skyblue;
        }
    </style>
</head>

<body>
    <div>你好</div>
</body>

</html>